<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>05</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        #box{
            
            height: 300px;
            position: absolute;
            top: 50%;
            margin-top: -150px;

        }
        #box div{
            width: 000px;
            height: 300px;
            background: #ccc;
        }
        #box p{
            background: #ff0;
            padding: 10px;
            position: absolute;
            top: 50%;
            margin-top: -30px;
            right: -36px;
            width: 16px;
        }
    </style>
    <script src="./jquery-1.11.3/jquery.js"></script>
</head>
<body>
    <div id="box">
        <div></div>
        <p>分享到</p>
    </div>
    <script>
        $('#box').mouseover(function(){
            $('#box>div').stop(true).animate({'width':'200px'},1000)
        })
        $('#box').mouseout(function(){
            $('#box>div').stop(true).animate({'width':'0px'},1000)
        })
    </script>
</body>
</html>